package com.david.appletree

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.PopupWindow

class ReaderMenuPop:PopupWindow {
    constructor(context:Context) {
        contentView = LayoutInflater.from(context).inflate(R.layout.pop_reader_menu, null)
        width = ViewGroup.LayoutParams.MATCH_PARENT
        height = ViewGroup.LayoutParams.MATCH_PARENT

        contentView.findViewById<View>(R.id.reader_menu_parent).setOnClickListener {
            dismiss()
        }
    }
}